 package com.rybbaby.tss.front.tssClasses.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @description 班级表
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-09 下午11:50:14
 */
@Entity
@Table(name = "view_classes_attendance_management")
@DynamicUpdate(true)
@DynamicInsert(true)
public class ViewClassesAttendanceManagement implements Serializable {


	private static final long serialVersionUID = 8217873349765292895L;



	/** 主键 **/
    @Id
	private String id;
	/** 类型 **/
	private Integer type;
	/** 课程体系 **/
	private String courseSystemName;
	/** 课程名称 **/
	private String courseName;
	/** 授课老师 **/
	private String realName;
	/** 班级起始时间 **/
	private Timestamp startTime;
	/** 班级截止时间 **/
	private Timestamp endTime;
	/** 班级截止时间 **/
	private Timestamp classTime;
	/** 上课教室 **/
	private String roomName;
	/** 人数 **/
	private Integer sumPeople;
	/** 考勤状态 **/
	private Integer classAttendanceStatus;
	/** 最后操作日期 **/
	private Timestamp maxUpdateTime;
	/** 操作人 **/
	private String userName;
	/**
	 * 方法: 取得主键
	 *
	 * @return java.lang.String 主键
	 */
	@Id
	@GeneratedValue(generator = "view_classes_attendance_management" , strategy = GenerationType.AUTO)
	@GenericGenerator(name = "view_classes_attendance_management" , strategy = "uuid")
	@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}

	/**
	 * 方法: 设置主键
	 *
	 */
	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "type", nullable= false, length = 11)
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	@Column(name = "courseSystemName", nullable= false, length = 50)
	public String getCourseSystemName() {
		return courseSystemName;
	}

	public void setCourseSystemName(String courseSystemName) {
		this.courseSystemName = courseSystemName;
	}

	@Column(name = "courseName", nullable= false, length = 50)
	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	@Column(name = "realName", nullable= false, length = 12)
	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

/*	@Column(name = "createTime", nullable= false, length = 32)
	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}*/
	@Column(name = "startTime", nullable= false, length = 32)
	public Timestamp getStartTime() {
		return startTime;
	}

	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}

	@Column(name = "endTime", nullable= false, length = 32)
	public Timestamp getEndTime() {
		return endTime;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}

	@Column(name = "classTime", nullable= false, length = 32)
	public Timestamp getClassTime() {
		return classTime;
	}

	public void setClassTime(Timestamp classTime) {
		this.classTime = classTime;
	}

	@Column(name = "roomName", nullable= false, length = 32)
	public String getRoomName() {
		return roomName;
	}

	public void setRoomName(String roomName) {
		this.roomName = roomName;
	}

	@Column(name = "sumPeople", nullable= false, length = 32)
	public Integer getSumPeople() {
		return sumPeople;
	}

	public void setSumPeople(Integer sumPeople) {
		this.sumPeople = sumPeople;
	}

	@Column(name = "classAttendanceStatus", nullable= false, length = 32)
	public Integer getClassAttendanceStatus() {
		return classAttendanceStatus;
	}

	public void setClassAttendanceStatus(Integer classAttendanceStatus) {
		this.classAttendanceStatus = classAttendanceStatus;
	}

	@Column(name = "maxUpdateTime", nullable= false, length = 32)
	public Timestamp getMaxUpdateTime() {
		return maxUpdateTime;
	}

	public void setMaxUpdateTime(Timestamp maxUpdateTime) {
		this.maxUpdateTime = maxUpdateTime;
	}

	@Column(name = "userName", nullable= false, length = 50)
	public String getuserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}